package com.biz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.common.page.PageParams;
import com.common.pojo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HouseMapper extends BaseMapper<House> {

    public List<House> selectPageHouses(@Param("house")House house, @Param("pageParams")PageParams pageParams);

    public Long selectPageCount(@Param("house") House query);

    public int insert(User account);

    public List<Community> selectCommunity(Community community);

    public int insert(House house);

    public HouseUser selectHouseUser(@Param("userId")Long userId, @Param("id") Long houseId, @Param("type") Integer integer);

    public HouseUser selectSaleHouseUser(@Param("id") Long houseId);

    public int insertHouseUser(HouseUser houseUser);

    public int insertUserMsg(UserMsg userMsg);

    public int updateHouse(House updateHouse);

    public  int downHouse(Long id);

    public int deleteHouseUser(@Param("id")Long id,@Param("userId") Long userId,@Param("type") Integer value);

}
